Termux sshd

Meow King March 01, 2024 Updated: March 01, 2024 #sshd #termux #ssh
pkg update
pkg install openssh
ifconfig # to show the ip address
sshd

Then you can connect you phone with your computer. Please note that your phone and your computer must be in the same network (all same wifi. No one wired and one wifi). Also note that you possibly cannot connect to it, for this situation, reboot your phone (I tried it, success).

ssh -p 8022 <phone_ip_address>

Troubleshooting

useful commands list:

nmap -p 8022 <phone_ip_address> # STATE must be open, filter means you cannot access it
sshd -d
ssh -vvvv -p 8022 <phone_ip_address>

useful links

  1. Termux 高级终端安装使用配置教程
  2. Termux Wiki